<template>
  <div class="user-tip">
      <div class="tip-item">
          <span><a href="PackageListYDK.aspx" style="background-color: #4BB35E;">1</a></span>
          <a href="PackageListYDK.aspx">到库包裹</a>
      </div>
      <div class="tip-item">
          <span><a href="PackageListYDK.aspx" style="background-color: #FF5490;">1</a></span>
          <a href="PackageListYDK.aspx">待审核订单</a>
      </div>
      <div class="tip-item">
          <span><a href="PackageListYDK.aspx" style="background-color: #01A3F8;">1</a></span>
          <a href="PackageListYDK.aspx">待支付订单</a>
      </div>
      <div class="tip-item">
          <span><a href="PackageListYDK.aspx" style="background-color: #A177C9;">1</a></span>
          <a href="PackageListYDK.aspx">已发货订单</a>
      </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      user_no: '',
      level: 0,
      email: '',
      phone: '',
      money: ''
    }
  },
  computed: {
    levelName: function () {
      switch (this.level) {
        case 1:
          return '高级会员'
        default:
          return '未知'
      }
    }
  },
  created: function () {
    let self = this
    this.$axios.get('/api/User/GetInfo').then(function (data) {
      self.user_no = data[0].user_no
      self.level = data[0].level
      self.email = data[0].email
      self.phone = data[0].phone
      self.money = data[0].money
    })
  }
}
</script>
